package com.longcai.cm.moudules.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Chen-Yue-2019
 * @since 2020-03-30
 */
@TableName("sys_menus")
public class SysMenus extends Model<SysMenus> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 资源编码
     */
    private String code;

    /**
     * 父级资源id
     */
    private String pid;

    /**
     * 跳转地址
     */
    private String pageurl;

    /**
     * 资源图标
     */
    private String icon;

    /**
     * 排序号
     */
    @TableField("order_no")
    private Integer orderNo;

    /**
     * 是否隐藏0不隐藏  1隐藏
     */
    @TableField("show_flag")
    private Integer showFlag;

    /**
     * 0目录 1 菜单 2 按钮
     */
    private Integer type;

    /**
     * 临时字段
     */
    private String remark;

    private String ct;

    private String cb;

    private String et;

    private String eb;

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    /**
     * 权限标识
     */
    private String permission;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPageurl() {
        return pageurl;
    }

    public void setPageurl(String pageurl) {
        this.pageurl = pageurl;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCt() {
        return ct;
    }

    public void setCt(String ct) {
        this.ct = ct;
    }

    public String getCb() {
        return cb;
    }

    public void setCb(String cb) {
        this.cb = cb;
    }

    public String getEt() {
        return et;
    }

    public void setEt(String et) {
        this.et = et;
    }

    public String getEb() {
        return eb;
    }

    public void setEb(String eb) {
        this.eb = eb;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysMenus{" +
                "id=" + id +
                ", name=" + name +
                ", code=" + code +
                ", pid=" + pid +
                ", pageurl=" + pageurl +
                ", icon=" + icon +
                ", orderNo=" + orderNo +
                ", showFlag=" + showFlag +
                ", type=" + type +
                ", remark=" + remark +
                ", ct=" + ct +
                ", cb=" + cb +
                ", et=" + et +
                ", eb=" + eb +
                "}";
    }
}
